package cn.wolfcode.designpattern.builder.example1;

import java.io.Serializable;
import java.nio.charset.StandardCharsets;

/**
 * @author Leon
 * @date 2021/2/21
 */
public class Client implements Serializable {

    public static void main(String[] args) {
        Computer computer = new Computer.Builder(new String("办公用".getBytes(), StandardCharsets.UTF_8))
//                .cpu("i9")
//                .gpu("GTX3090")
//                .memory("32G")
                .build();
        computer.display();
    }
}
